/**
 * 
 * If you have edited the file, please update
 * all the last-modified fields manually. Thanks!
 *
 * @last-modified by: 
 * @last-modified date: 
 * @last-modified time: 
 *
 * @author Swee Zhi
 * @date-created Sep 12, 2011    @time-created 7:34:20 PM
 *
 * @project: 
 * @module: 
 * @institution: 
 *
 */
package util.enumhelper;

import util.enumeration.Language;
import util.enumeration.LanguageISOCodes;

public class LanguageCodes {
//    Language language;
//	
//    public LanguageCodes(Language language) {
//        this.language = language;
//    }

    // alphabetical order
    public static LanguageISOCodes getISOCode(Language language) {
        LanguageISOCodes code = null;
        
        switch (language) {
            case CHINESE_CHINA: code = LanguageISOCodes.zh; break;
            case ENGLISH_US: code = LanguageISOCodes.en; break;
            case ENGLISH_SINGAPORE: code = LanguageISOCodes.en; break;
            case MALAY: code = LanguageISOCodes.ms; break;
        }
        return code;
    }
}
